import instance from "./config";


// 封装get请求
const get = (url: string, params: any) => {
    return instance({
        url,
        method: 'get',
        params
    })
}

// 封装post请求
const post = (url: string, data: any) => {
    return instance({
        url,
        method: 'post',
        data
    })
}



export default {
    get,
    post
}